<div id="login">
    <form action="" name="login" method="post" id="login-section">
        <h3><span>Login</span></h3>
        <fieldset><legend>Login form</legend>
        <p class="first">
            <label>Username</label>
            <input type="text" id="login_username" name="username"/>
        </p>
        <p>
            <label>Password</label>
            <input type="password" name="password" id="login_password"/>
        </p>
        <p class="submit">
        <button type="button" onclick="authenticate();">Login</button>
        <button type="button" onclick="toggleLogin();">Cancel</button>
        </p> 
        </fieldset>
        <div id="login_failed"><h3><span>Login failed. Please try again.</span></h3></div>  
    </form>
</div>

<div id="signout">
        <form name="signout" method="post" action="logout.php" id="signoutform">
            <h3><span>Are you sure to log out?</span></h3>
            <fieldset><legend>Login form</legend>
             <p class="submit">
             <input type="submit" value="Yes" />
             <input type="button" onclick="toggleSignout();" value="No" />
             </p> 
             </fieldset>
        </form>
</div>